package com.b.sts.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author b
 * @since 2023-07-12
 */
@Getter
@Setter
@TableName("comment")
public class CommentEntity {

    /**
     * 评论ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 内容
     */
    private String content;

    /**
     * userId
     */
    private Integer userId;

    /**
     * 商品ID
     */
    private Integer productId;

    /**
     * 创建时间
     */
    private Date createTime;
    @TableField(exist = false)
    private UserEntity userEntity;
    @TableField(exist = false)
    private ProductEntity productEntity;
    @TableField(exist = false)
    private String search;
}
